home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 127 / MF_UK_127_1.iso / pc / Game Demos / Wolfenstein Demo / demomain / pak0.pk3 / scripts / test.shader < prev    next >
Encoding:
Text File  |  2001-11-20  |  7.2 KB  |  386 lines

  1. textures/test/flag_l_01a
  2. {
  3.         qer_editorimage textures/test/flag_l_01.tga
  4.  
  5.     tessSize 64
  6.     deformVertexes wave 100 sin 4 3 0 0.3
  7.         //deformVertexes wave 194 sin 0 3 0 .4
  8.         //deformVertexes wave 30 sin 0 3 0 .8
  9.         //deformVertexes wave 194 sin 0 3 0 .4
  10.         //deformVertexes wave 300 sin 0 4 0 .1
  11.         surfaceparm nomarks
  12.         cull none
  13.         
  14.     {
  15.         map textures/test/flag_l_01.tga
  16.         blendFunc GL_ONE GL_ZERO
  17.         //alphaFunc GE128
  18.         //depthWrite
  19.         rgbGen identity
  20.     }
  21.         {
  22.         map $lightmap
  23.                 blendFunc GL_DST_COLOR GL_ZERO
  24.         rgbGen identity
  25.     }
  26.     
  27.  
  28. }
  29.  
  30. textures/test/flag_l_01malytest
  31. {
  32.         qer_editorimage textures/test/flag_l_01.tga
  33.  
  34.     tessSize 64
  35.     //deformVertexes wave 100 sin 4 3 0 0.3
  36.         //deformVertexes wave 194 sin 0 3 0 .4
  37.         deformVertexes wave 10 sin 0 2 0 .2
  38.         //deformVertexes wave 194 sin 0 3 0 .4
  39.         //deformVertexes wave 300 sin 0 4 0 .1
  40.         surfaceparm nomarks
  41.         cull none
  42.         
  43.     {
  44.         map textures/test/flag_l_01.tga
  45.         blendFunc GL_ONE GL_ZERO
  46.         //alphaFunc GE128
  47.         //depthWrite
  48.         rgbGen identity
  49.     }
  50.         {
  51.         map $lightmap
  52.         blendFunc GL_DST_COLOR GL_ZERO
  53.         rgbGen identity
  54.     }
  55.     
  56.  
  57. }
  58.  
  59. textures/test/flag_l_01clairetest
  60. {
  61.         qer_editorimage textures/test/flag_l_01.tga
  62.  
  63.     tessSize 64
  64.     //deformVertexes wave 100 sin 4 3 0 0.3
  65.         //deformVertexes wave 194 sin 0 3 0 .4
  66.         deformVertexes wave 10 sin 0 2 0 .2
  67.         //deformVertexes wave 194 sin 0 3 0 .4
  68.         //deformVertexes wave 300 sin 0 4 0 .1
  69.         surfaceparm nomarks
  70.         cull none
  71.         
  72.     { 
  73.         map textures/test/flag_l_01.tga
  74.         blendFunc GL_ONE GL_ZERO
  75.         //alphaFunc GE128
  76.         //depthWrite
  77.         rgbGen identity
  78.     }
  79.         {
  80.         map $lightmap
  81.         blendFunc GL_DST_COLOR GL_ZERO
  82.         rgbGen identity
  83.     }
  84.     
  85.  
  86. }
  87.  
  88. textures/ctf/ctf_blueflag
  89. {
  90.         tessSize 64
  91.     //deformVertexes wave 100 sin 4 3 0 0.3
  92.        deformVertexes wave 194 sin 0 3 0 .4
  93.         //deformVertexes wave 30 sin 0 3 0 .8
  94.         //deformVertexes wave 194 sin 0 3 0 .4
  95.         //deformVertexes wave 300 sin 0 4 0 .1
  96.         surfaceparm nomarks
  97.         cull none
  98.         
  99.         {
  100.         map textures/ctf/ctf_blueflag.tga
  101.         rgbGen identity
  102.     }
  103.         {
  104.         map textures/effects/redflagmap.tga
  105.                 tcGen environment
  106.                 tcmod scale 9 3
  107.                 tcmod scroll .1 .7
  108.                 
  109.                 blendFunc GL_ONE GL_ONE
  110.                 rgbGen identity
  111.     }
  112.         {
  113.         map textures/ctf/ctf_blueflag.tga
  114.                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  115.         rgbGen identity
  116.     }
  117.         {
  118.         map $lightmap
  119.                 blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
  120.         rgbGen identity
  121.     }
  122. }
  123. textures/ctf/ctf_redflag
  124. {
  125.         tessSize 64
  126.     //deformVertexes wave 100 sin 4 3 0 0.3
  127.         deformVertexes wave 194 sin 0 3 0 .4
  128.        // deformVertexes wave 30 sin 0 3 0 .8
  129.         //deformVertexes wave 194 sin 0 3 0 .4
  130.        // deformVertexes wave 300 sin 0 4 0 .1
  131.         surfaceparm nomarks
  132.         cull none
  133.         {
  134.         map textures/ctf/ctf_redflag.tga
  135.         rgbGen identity
  136.     }
  137.         {
  138.         map textures/effects/blueflagmap.tga
  139.                  tcGen environment
  140.                 tcmod scale 9 3
  141.                 tcmod scroll .1 .7
  142.                 
  143.                 blendFunc GL_ONE GL_ONE
  144.                 rgbGen identity
  145.     }
  146.         {
  147.         map textures/ctf/ctf_redflag.tga
  148.                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  149.         rgbGen identity
  150.     }
  151.         {
  152.         map $lightmap
  153.                 blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
  154.         rgbGen identity
  155.     }
  156. }
  157. powerups/redflag
  158. {
  159.     deformVertexes wave 100 sin 3 0 0 0
  160.     {
  161.         map textures/effects/redflagmap.tga
  162.         blendfunc GL_ONE GL_ONE
  163.         tcGen environment
  164.         tcMod turb 0 0.2 0 1
  165.     }
  166. }
  167.  
  168. powerups/blueflag
  169. {
  170.     deformVertexes wave 100 sin 3 0 0 0
  171.     {
  172.         map textures/effects/blueflagmap.tga
  173.         blendfunc GL_ONE GL_ONE
  174.         tcGen environment
  175.         tcMod turb 0 0.2 0 1
  176.     }
  177. }
  178.  
  179. sprites/friend
  180. {
  181.     nomipmaps
  182.     nopicmip
  183.     {
  184.         map sprites/friend1.tga
  185.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  186.     }
  187. }
  188.  
  189. sprites/foe
  190. {
  191.     nomipmaps
  192.     nopicmip
  193.     {
  194.         map sprites/foe2.tga
  195.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  196.     }
  197. }
  198.  
  199. textures/test/pjgrate1
  200. {
  201.     surfaceparm    metalsteps        
  202.     cull none
  203.  
  204.     // A GRATE OR GRILL THAT CAN BE SEEN FROM BOTH SIDES
  205.     {
  206.         map textures/test/pjgrate1.tga
  207.         tcMod scale 2 2
  208.         blendFunc GL_ONE GL_ZERO
  209.         alphaFunc GE128
  210.         depthWrite
  211.         rgbGen identity
  212.     }
  213.     {
  214.         map $lightmap
  215.         rgbGen identity
  216.         blendFunc GL_DST_COLOR GL_ZERO
  217.         depthFunc equal
  218.     }
  219. }
  220.  
  221.  
  222.  
  223.  
  224. ///////// 
  225. ////////
  226. ///////
  227. //
  228. // Sherman testing
  229. //
  230.  
  231.  
  232. textures/test/soloflare1
  233. {
  234.     qer_editorimage textures/test/soloflare1.tga
  235.     q3map_surfacelight 5000
  236. //    q3map_flare flareShader
  237.     surfaceparm nomarks
  238.     {
  239.         map $lightmap
  240.         rgbGen identity
  241.     }
  242.     {
  243.         map textures/sfx/firegorre.tga
  244.             blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  245.             tcmod scale  -1.3 -1
  246.             tcMod scroll 2 0
  247.     }
  248. }
  249.  
  250.  
  251. textures/test/shermflare
  252. {
  253.     deformVertexes autoSprite
  254. //    deformVertexes move 0 0 3   sin 0 5 0 0.1
  255. //    deformVertexes move 2 2 0   sin 0 9 0 0.05
  256.     surfaceparm    trans
  257.     surfaceparm nomarks
  258.     surfaceparm nolightmap
  259.     cull none
  260.     {
  261.         clampmap gfx/misc/flare.tga
  262.         blendFunc GL_ONE GL_ONE
  263.         tcMod rotate 20
  264.     }
  265. }
  266.  
  267.  
  268. textures/test/solo_group1
  269. {
  270.     q3map_smoothinggroup 1        // set the group
  271.  
  272. //    qer_editorimage textures/test/shermtest1.tga
  273.     qer_editorimage textures/test/grnwall_m01a.tga
  274.  
  275.     {
  276.         map textures/test/grnwall_m01a.tga
  277.         blendFunc GL_ONE GL_ZERO
  278.         rgbGen identity
  279.     }
  280.     {
  281.         map $lightmap
  282.         blendFunc GL_DST_COLOR GL_ZERO
  283.         rgbGen identity
  284.     }
  285. }
  286.  
  287. textures/test/solo_group2
  288. {
  289.     q3map_smoothinggroup 2        // set the group
  290.  
  291.     qer_editorimage textures/test/grnwall_m01a.tga
  292.  
  293.     {
  294.         map textures/test/grnwall_m01a.tga
  295.         blendFunc GL_ONE GL_ZERO
  296.         rgbGen identity
  297.     }
  298.     {
  299.         map $lightmap
  300.         blendFunc GL_DST_COLOR GL_ZERO
  301.         rgbGen identity
  302.     }
  303. }
  304.  
  305. textures/test/solo_shiny1
  306. {
  307.     {
  308.         map textures/base_wall/chrome_env.tga
  309.         tcgen environment
  310.         tcmod scale .25 .25 
  311.         rgbgen identity      
  312.     }
  313.  
  314.     {
  315.         map textures/base_wall/shinybluemetal1.tga
  316.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
  317.         rgbGen identity
  318.         //alphaGen lightingSpecular
  319.     }
  320.     
  321.     {    
  322.         map $lightmap
  323.         blendfunc gl_dst_color gl_zero
  324.         rgbgen identity      
  325.     }
  326.  
  327.  
  328.                 
  329. }
  330.  
  331.  
  332. models/weapons2/lightning/f_lightning
  333. {
  334.     sort additive
  335.     cull disable
  336.     {
  337.         map models/weapons2/flamethrower/flash.tga
  338.         blendfunc GL_ONE GL_ONE
  339.     }
  340. }
  341.  
  342. models/weapons2/lightning/crackle1
  343. {
  344.     sort additive
  345.     cull disable
  346.     
  347.     {
  348.         clampmap models/weapons2/flamethrower/pilot.tga
  349.         tcMod rotate 16
  350.         blendFunc GL_ONE GL_ONE
  351.     }
  352.         
  353. }
  354.  
  355. textures/skies/solosky1
  356. {
  357.     qer_editorimage textures/skies/toxicsky.tga
  358.     surfaceparm noimpact
  359.     surfaceparm nolightmap
  360.     q3map_globaltexture
  361.     q3map_lightsubdivide 256
  362.     q3map_surfacelight 400
  363.     surfaceparm sky
  364.     q3map_sun    1 1 0.5 150 30 60
  365.     skyparms full 512 -
  366.     {
  367.         map textures/skies/inteldimclouds.tga
  368.         tcMod scroll 0.1 0.1
  369.         tcMod scale 3 2
  370.         depthWrite
  371.     }
  372.     {
  373.         map textures/skies/intelredclouds.tga
  374.         blendfunc GL_ONE GL_ONE
  375.         tcMod scroll 0.05 0.05
  376.         tcMod scale 3 3
  377.     }
  378. }
  379.  
  380. //\\
  381. //\\ end Sherman testing
  382. //\\
  383. //\\\\\\\
  384. //\\\\\\\\
  385. //\\\\\\\\\ 
  386.